<template>
  <div id="app">
    <app-header></app-header>
    <div class="main">
      <app-nav></app-nav>
      <div class="content"><router-view/></div>
    </div>
  </div>
</template>

<script>
  import AppHeader from './components/AppHeader.vue'
  import AppNav from './components/AppNav.vue'
  export default {
    name: 'app',
    components: {
      AppHeader,
      AppNav
    }
  }
</script>

<style lang="less">
  @base: #ff6579;

  body{
    font-family: "Helvetica Neue", 'Microsoft YaHei',Helvetica, Arial, sans-serif;
    font-size: 14px;
  }
  *, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  body,ul,ol,li{margin:0;padding:0;}

  /*a链接*/
  .text-link{
    text-decoration:none;
    color: @base;
    cursor: pointer;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
  }
  .text-link:hover{
    text-decoration: underline;
    color: darken(@base,2%);
  }
  /*幽灵按钮*/
  .btn-ghost{
    height: 26px;
    line-height: 24px;
    border: 1px solid @base;
    display: inline-block;
    padding: 0 16px;
    margin-top: 8px;
    text-decoration: none;
    color: @base;
  }
  .btn-ghost:hover{
    color: #fff;
    text-decoration: none;
    background: darken(@base, 2%);
  }
  /*筛选按钮*/
  .btn-select{
    display: inline-block;
    height: 28px;
    width: 108px;
    overflow: hidden;
    margin: 0 2px 1px 0;
    background: #e8e8e8;
    line-height: 28px;
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
    color: #666;
    cursor: pointer;
    border-radius: 0;
  }
  .btn-select:hover{
    color:@base;
  }
  .btn-select.active{
    background: @base;
    color:#fff;
  }
  .ivu-tabs-nav .ivu-tabs-tab:hover {
    color: @base;
  }
  [class^="icon-"], [class*=" icon-"] {
    position: relative;
    display: inline-block;
    width:16px;
    height:16px;
    top:4px;
    opacity: 0.5;
    background: url('./assets/icon/icon_backup.png') no-repeat 0 0;
  }
  .mar-top20{
    margin-top:20px;
  }
  .text-center{
    text-align: center;
  }
  .fl{
    float:left;
  }
  .fr{
    float:right;
  }
  .font-bold{
    font-weight:bold;
  }
  .padding20{
    padding:20px;
  }
  .font-size0{
    font-size: 0;
  }
  .list-title{
    display: block;
    text-indent: 8px;
    border-left: 3px solid @base;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  #app {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2c3e50;
  }
  .main{
    position: absolute;
    width: 100%;
    top: 60px;
    bottom: 0;
    background-color: #fafafa;
    z-index: 100;
  }
  .content {
    width: auto;
    position: absolute;
    top: 0;
    left: 180px;
    bottom: 0;
    right: 0;
    overflow: hidden;
    overflow-y: auto;
  }
  .clear{
    clear:both;
    overflow: hidden;
  }
</style>
